﻿using System;

namespace Glue.Converters
{
    internal class UShortStringConverter:GlueDefaultConverter<ushort,String>
    {
        internal override string InternalMapTowardsRight(ushort from)
        {
            return from.ToString();
        }

        internal override ushort InternalMapTowardsLeft(string from)
        {
            return Convert.ToUInt16(from);
        }
    }
}
